package com.csii.activiti.server.core.entity.db;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@ApiModel("通用数据描述")
@AllArgsConstructor
@NoArgsConstructor
public class ActCommonDataEntity {
    @ApiModelProperty("id")
    private String id;
    @ApiModelProperty("列名")
    private String columnName;
    @ApiModelProperty("列备注")
    private String columnRemark;
    @ApiModelProperty("数据类型")
    private String dbType;
//    @ApiModelProperty("Java类型")
//    private String javaType;
    @ApiModelProperty("控件类型")
    private String elementType;
    @ApiModelProperty("列长度")
    private Integer columnLength;
    @ApiModelProperty("表单属性名")
    private String formAttributeName;

    public ActCommonDataEntity(String columnName, String columnRemark, String dbType, String elementType, Integer columnLength,String formAttributeName) {
        this.columnName = columnName;
        this.columnRemark = columnRemark;
        this.dbType = dbType;
        this.elementType = elementType;
        this.columnLength = columnLength;
        this.formAttributeName = formAttributeName;
    }
}
